package com.zbkj.service.dao.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.user.User;
import com.zbkj.common.request.user.AdminUserQueryRequest;
import com.zbkj.common.vo.user.UserDatavalVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 客户端用户表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-07-05
 */
public interface UserMapper extends BaseMapper<User> {

    List<User> adminGetList(@Param("queryRequest") AdminUserQueryRequest queryRequest);

    int accountRepeatCheck(@Param("id") Long id, @Param("account") String account);

    int deductDataval(@Param("userDatavalVo") UserDatavalVo userDatavalVo);

    int icrDataval(@Param("userId") Long userId, @Param("dataval") Long dataval);
    int icrDataValAndCheckCardId(@Param("userId") Long userId, @Param("cardDataval") Long cardDataval, @Param("dataval") Long dataval, @Param("cardId") Long cardId);
}
